package c.h.b.c.a;

import c.f.c.a.d;
import c.h.b.d.a.h;
import com.huawei.hms.iap.IapApiException;
import com.huawei.hms.iap.entity.OrderStatusCode;
import com.huawei.hms.support.api.client.Status;

/* compiled from: lambda */
public final /* synthetic */ class b implements d {
    public final /* synthetic */ h a;

    public /* synthetic */ b(h hVar) {
        this.a = hVar;
    }

    public final void onFailure(Exception exception) {
        h hVar = this.a;
        if (exception instanceof IapApiException) {
            IapApiException iapApiException = (IapApiException) exception;
            Status status = iapApiException.getStatus();
            iapApiException.getStatusCode();
            if (status.getStatusCode() == OrderStatusCode.ORDER_HWID_NOT_LOGIN) {
                hVar.b();
                return;
            } else {
                hVar.a();
                return;
            }
        }
        hVar.a();
    }
}
